﻿/*
var status = 0;
var random = java.lang.Math.floor(Math.random() * 4);
var eff = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var eff1 = "#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#";
var icon = "#fUI/Basic.img/BtMin2/normal/0#";
var iconX = "#fEffect/CharacterEff/1112905/0/1#";
var iconStar = "#fEffect/CharacterEff/1112904/2/1#";
var icon1 = "#fEffect/CharacterEff/1042176/0/0#";
var iconHR = "#fEffect/CharacterEff/1082565/0/0#"
var icon2 = "#fEffect/CharacterEff/1082565/2/0#";
var icon3 = "#fEffect/CharacterEff/1082565/4/0#";
var icon4 = "#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#";
var icon0 = "#fUI/Basic.img/VScr7/enabled/thumb0#";//小图标
var icon1 = "#fUI/ChatBalloon.img/pet/16/nw#";//小黄鸡
var icon2 = "#fUI/ChatBalloon.img/pet/16/ne#";//小黄鸡
var icon3 = "#fUI/GuildBBS/GuildBBS/Emoticon/Cash/7#";//发呆
var icon4 = "#fUI/GuildBBS/GuildBBS/Emoticon/Cash/6#";//愤怒
var icon5 = "#fUI/GuildBBS/GuildBBS/Emoticon/Cash/3#";//大笑
var icon6 = "#fUI/GuildBBS/GuildBBS/Emoticon/Cash/1#";//大笑

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (cm.haveItem(3010508)) {
        var gbtp = "#r贵宾玩家#k";
    } else {
        var gbtp = "普通玩家";
    }
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;                              
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
            cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
            cm.dispose();
        } else if (status == 0) {
		var selStr = "" + eff1 + "在线：#r"+cm.getOnlineTime()+"#k       " + eff1 + "积分：#r"+cm.getPlayerPoints()+"#k 	  " + eff1 + "活力：#r"+cm.getPlayerEnergy()+"#k\r\n" + eff1 + "点券：#r" + cm.getPlayer().getCSPoints(1) + "#k  " + eff1 + "抵用卷：#r" + cm.getPlayer().getCSPoints(2) + "#k " + eff1 + "余额：#r" + cm.getHyPay(1)+ "#k#k\r\n";
		selStr += "#L2#" + eff + "#r新手必看#l";
                selStr += "#L8#" + eff + "#r快速转职#l";	
		//selStr += "#L22#" + eff + "#r免费余额#l";
		selStr += "#L23#" + eff + "#r美容美发#l";
		selStr += "#L3#" + eff + "#r充值中心#l\r\n\r\n";
		selStr += "#L4#" + eff + "#d杂货商店#l"; 
		selStr += "#L14#" + eff + "#d服务中心#l";
		//selStr += "#L18#" + eff + "#d购买坐骑#n#l";
		selStr += "#L21#" + eff + "#d在线奖励#l";
		selStr += "#L6#" + eff + "#d每日福利#l\r\n\r\n";
                selStr += " #L7##b回到市场#l";
		selStr += " #L12##rBOSS传送#l";
		selStr += " #L18##b删除道具#l";
		selStr += " #L10##r管理中心#l\r\n";
		selStr += " #L11##b万能传送#l";
		selStr += " #L0##r副本任务#l";
		selStr += " #L13##b爆物查询#l";
		selStr += " #L9#学购技能#l#n\r\n\r\n";
		selStr += " #L15#" + eff + "#b点卷商店#l";
		selStr += " #L16#" + eff + "#r积分-神秘道具-活力#l";
		selStr += " #L17#" + eff + "#b百宝抽奖#k#l\r\n\r\n";	
		//selStr += " #L20#" + eff + "#b玩家不要点测试npc#k#l\r\n\r\n";	
		selStr += "		Ps：常用指令#r@npc#k，#r@解卡#k，#r@卡图#k，#r@帮助#k \r\n";
		selStr += "  Ps：新手玩家请先熟悉【#r新手必看#k】【#r每日福利#k】功能\r\n";
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
			cm.dispose();
			//cm.openNpc(9310144, "zuduirenwu");
           cm.warp(910002000, 0);	
            break;
        case 1:
			cm.dispose();
			cm.openNpc(9900001,"tupo");	
            break;
        case 2:
			cm.dispose();
			cm.openNpc(9900005);	
            break;
        case 22:
			cm.dispose();
			cm.openNpc(9900005,"hqye1");	
            break;
        case 3://充值网站
			cm.dispose();
			cm.openNpc(9310070);	
            break;
        case 4://管理雇佣商店
            cm.dispose();
            // cm.openShop(9070000);
	    //cm.openNpc(9900000);
            cm.openShop(61);
            break;
        case 5://累积充值
            cm.dispose(); 
	    cm.openNpc(9900002, "hanqingdu");
            break;
        case 6://每日福利
		   cm.dispose();
	    cm.openNpc(9300011);
            break;
         /*   cm.dispose();
            cm.openWeb("http://www.libaopay.com/buy/?wid=37438");
	    cm.sendOk("已经为您打开赞助网站！");*/
	//if(cm.getPlayer().getLevel() <= 10){
		//cm.gainExp( + 50000);
		//cm.worldMessage("恭喜新玩家"+ cm.getChar().getName() +"在拍卖NPC处领取5W经验");
		//cm.sendOk("恭喜您领取成功,10级下都能在我这里领取经验");
		//}else{
		//cm.sendOk("你的等级大于10");
	//}
	//cm.dispose();
            //break;
/*        case 7://回到市场
            if (cm.getPlayer().getMapId() >= 910000000 && cm.getPlayer().getMapId() <= 910000022) {
                cm.sendOk("您已经在市场了，还想做什么？");
            } else {
                cm.saveReturnLocation("FREE_MARKET");
                cm.warp(910000000, "st00");
            }
            cm.dispose();		
            break;
        case 8://快速转职
			cm.dispose();
		  cm.openNpc(9310362, "changeJob");
			break;			
        case 9://学习技能
			cm.dispose();
			cm.openNpc(9900003, "xuegoujineng");         
			break;
		 case 10://管理雇佣商店
		/*if (cm.getPlayer().getLevel() > 100 ) {
			cm.warp(701000210);
			cm.sendOk("青龙之门为大混战PK.赤龙之门为组队PK战.黄龙之门为家族PK战.祝您好运");
			} else {
				cm.sendOk("对不起.PK太危险了.100级以下的玩家不能进入噢.");
			}
			cm.dispose();*/
/*		cm.dispose();
		cm.openNpc(9900004,"guanlizhongxin");
	    //cm.openNpc(9030000);	
            break;
		 case 11://快速传送
			cm.dispose();
			cm.openNpc(1032005, "worldwarp");				
            break;
		case 12://副本传送
		cm.dispose();
	   //cm.openNpc(9900003,"fuben108");
             cm.openNpc(2023000, "BOSSwarp");	
            break;
		case 13://快速转职
          /*  cm.dispose();
			cm.openNpc(9900001,3000);
            break;*/
/*			cm.dispose();
            cm.openNpc(9010000, "wuguaibaolbv"); 
			break;			
		case 14://银行存款
           /* cm.dispose();
			cm.openNpc(9900002,36);
            break;*/
/*			cm.dispose();
			cm.openNpc(9310476);
			break;			
		case 15://美容美发
            /*cm.dispose();
			cm.openNpc(9900002,36);*/
/*            cm.dispose();
			//cm.openNpc(9900003,"qitashangdian");
                    cm.openNpc(9010047, "dianjuanshangcheng2"); 
            break;
		case 16://每日福利
            cm.dispose();
			cm.openNpc(9900002,"jifenhuoli");
			//cm.openNpc(9900003,608);
            break;
		case 17:
            cm.dispose();
			//cm.openNpc(9900002,36);
			//cm.openNpc(9900004,"wanneng");
                     cm.warp(749050400);
            break;
		case 18://百货店
			cm.dispose();
			//cm.openNpc(9900000,"fubencz");
			cm.openNpc(9900000,"Delete");
			break;			
        case 19:
            cm.dispose();
            cm.openNpc(9900002);
            break;	
        case 20://RED商店
            cm.dispose();
            cm.openNpc(9900002, "shizi");
            break;	
        case 21://RED商店
            cm.dispose();
            cm.openNpc(9900000);
            break;	
        case 23://RED商店
            cm.dispose();
            cm.openNpc(9105006, "mfmr1");
            break;		
			
	}
    }
}
*/


var status = 0;
var ttt ="#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 ="#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 ="#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 ="#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 ="#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 ="#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 ="#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var a = 0;
var icon = "#fUI/Basic.img/BtMin2/normal/0#";
var iconEvent = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";
var ttt4 ="#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var icon2 = "#fEffect/CharacterEff/1082565/2/0#";
var Star = "#fEffect/CharacterEff/1112904/2/1#";
var yun1 ="#fUI/UIWindow/Quest/icon7/10#";////红色圆
var yun2 ="#fUI/UIWindow/Quest/icon8/0#";////蓝指标
var yun4 ="#fUI/UIWindow/Quest/reward#";////奖励
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮
var zs = "#fEffect/CharacterEff/1112946/2/0#";  //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#";  //砖石蓝
var a = "#fEffect/CharacterEff/1082565/0/0#";  //饼干兔子
var b = "#fEffect/CharacterEff/1112904/0/0#"; //彩色星星
var c = "#fEffect/CharacterEff/1003271/0/0#";  //红色心心
var d = "#fEffect/CharacterEff/1112946/4/1#";  //钻石
var e = "#fEffect/CharacterEff/1082229/0/0#";  //红心
var eff = "#fEffect/CharacterEff/1112905/0/1#"; //
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var epp1 = "#fEffect/CharacterEff/1082312/2/0#"; //彩光1
var axx = "#fEffect/CharacterEff/1051294/0/0#";  //爱心
var xxx = "#fEffect/CharacterEff/1082565/2/0#"; //星系
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮 
var epp3 = "#fEffect/CharacterEff/1112908/0/1#";  //彩光3
var axx1 = "#fEffect/CharacterEff/1062114/1/0#";  //爱心
var zs = "#fEffect/CharacterEff/1112946/2/0#";  //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#";  //砖石蓝
var dxxx = "#fEffect/CharacterEff/1102232/2/0#"; //星系
var tz1 = "#fEffect/CharacterEff/1082565/2/0#";  //兔子蓝
var tz = "#fEffect/CharacterEff/1082565/4/0#";  //兔子粉
var tz5 = "#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#";
var iconEvent = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";
var ttt2 ="#fUI/UIWindow/Quest/icon6/7#";////美化2
var tz2 = "#fEffect/CharacterEff/1082565/0/0#";  //兔子灰色
var tz3 = "#fEffect/CharacterEff/1082588/0/0#";  //红点
var tz4 = "#fEffect/CharacterEff/1082588/3/0#";  //蓝点
var tz51 = "#fEffect/CharacterEff/1082588/1/0#";  //绿点
var tz6 = "#fEffect/CharacterEff/1112900/2/1#";  //音符蓝
var tz7 = "#fEffect/CharacterEff/1112900/3/1#";  //音符红
var tz8 = "#fEffect/CharacterEff/1112900/4/1#";  //音符绿
var tz88 = "#fEffect/CharacterEff/1112900/5/1#";  //音符绿!
var tz9 = "#fEffect/CharacterEff/1112902/0/0#";  //蓝心
var tz10 = "#fEffect/CharacterEff/1112903/0/0#";  //红心
var tz11 = "#fEffect/CharacterEff/1112904/0/0#";  //彩心
var tz12 = "#fEffect/CharacterEff/1112924/0/0#";  //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#";  //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#";  //红星
var tz15 = "#fEffect/CharacterEff/1112949/0/0#";  //花样音符
var tz16 = "#fEffect/CharacterEff/1112949/1/0#";  //花样音符
var tz17 = "#fEffect/CharacterEff/1112949/2/0#";  //花样音符
var tz18 = "#fEffect/CharacterEff/1112949/3/0#";  //花样音符
var tz19 = "#fEffect/CharacterEff/1112949/4/0#";  //花样音符
var tz20 = "#fEffect/CharacterEff/1114000/1/0#";  //红星花
var yun ="#fUI/UIWindow/PartySearch2/BtNext/mouseOver/0#";////红沙漏
var wn1 = "#fUI/Basic.img/BtClaim/normal/0#";  //警灯
var wn2 = "#fUI/UIWindowTW.img/TimeCapsule/BtClose/disabled/0#";  //叉叉
var wn3 = "#fUI/Basic.img/ComboBox/disabled/1#";  //白条
var wn4 = "#fUI/Basic.img/ComboBox3/mouseOver/1#";  //黄条
var wn5 = "#fUI/Basic.img/Cursor/17/16#";  //黄色圈
var wn6 = "#fUI/Basic.img/Cursor/34/0#";  //圈
var wn7 = "#fUI/Basic.img/Cursor/43/3#";  //蓝圈
var wn8 = "#fUI/CashShop.img/CSBargainSale/BtLeft/normal/0#";  //黄色左
var wn9 = "#fUI/CashShop.img/CSBargainSale/BtRight/normal/0#";  //黄色右
var wn10 = "#fUI/CashShop.img/CSBeauty/tip/hair#";  //发型提示
var wn11= "#fUI/CashShop.img/CSBeauty/hairColor/Enable/0#";  //黑
var wn12 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/1#";  //红
var wn13 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/2#";  //橙
var wn14 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/3#";  //黄
var wn15 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/4#";  //绿
var wn16 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/5#";  //亲
var wn17 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/6#";  //紫
var wn18 = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/7#";  //褐
var wn19 = "#fUI/CashShop.img/CSEffect/event/0#";  //活动图标
var wn20 = "#fUI/CashShop.img/CSEffect/hot/0#";  //人气图标
var wn21 = "#fUI/CashShop.img/CSEffect/mileage/0#";  //积分图标
var wn22 = "#fUI/CashShop.img/CSEffect/new/0#";  //新品图标
var wn23 = "#fUI/CashShop.img/CSEffect/sale/0#";  //折扣图标
var wn24 = "#fUI/CashShop.img/CSEffect/time/0#";  //限量图标
var wp110 = "#fUI/CashShop.img/CSEffect/number/0#";  //数字 后面改数字0-9
var wp111 = "#fUI/CashShop.img/CSEffect/number/1#";  //数字 后面改数字0-9
var wp112 = "#fUI/CashShop.img/CSEffect/number/2#";  //数字 后面改数字0-9
var wp113 = "#fUI/CashShop.img/CSEffect/number/3#";  //数字 后面改数字0-9
var wp114 = "#fUI/CashShop.img/CSEffect/number/4#";  //数字 后面改数字0-9
var wp115 = "#fUI/CashShop.img/CSEffect/number/5#";  //数字 后面改数字0-9
var wp116 = "#fUI/CashShop.img/CSEffect/number/6#";  //数字 后面改数字0-9
var wp117 = "#fUI/CashShop.img/CSEffect/number/7#";  //数字 后面改数字0-9
var wp118 = "#fUI/CashShop.img/CSEffect/number/8#";  //数字 后面改数字0-9
var wp119 = "#fUI/CashShop.img/CSEffect/number/9#";  //数字 后面改数字0-9
var wp2 = "#fUI/CashShop.img/CSIcon/0#";  //男图标 0男-1女
var wp3 = "#fUI/CashShop.img/CSStatus/BtCharge/mouseOver/0#";  //充值图标
var wp4 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/0#";  //武器开头
var wp5 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/1#";  //帽子
var wp6 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/2#";  //披风
var wp7 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/3#";  //长袍
var wp8 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/4#";  //上衣
var wp9 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/5#";  //裤子
var wp10 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/6#";  //鞋子
var wp11 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/7#";  //手套
var wp12 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/8#";  //饰品
var wp13 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/9#";  //眼饰
var wp14 = "#fUI/CashShop.img/CSSubTabBar/Tab/4/Disable/10#";  //效果结尾
var wp15 = "#fUI/mapleBingo.img/mapleBingo/lineAni/0/0#";  //斜线美化
var wp16 = "#fUI/mapleBingo.img/mapleBingo/lineAni/0/1#";  //斜线美化
var wp17 = "#fUI/mapleBingo.img/mapleBingo/lineAni/0/2#";  //斜线美化
var wp18 = "#fUI/mapleBingo.img/mapleBingo/lineAni/0/3#";  //斜线美化
var wp19 = "#fUI/mapleBingo.img/mapleBingo/lineAni/0/4#";  //斜线美化
var wp20 = "#fUI/mapleBingo.img/mapleBingo/lineAni/0/5#";  //斜线美化
var wi1 = "#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#";  //星星图标
var wi2 = "#fUI/SoulUI.img/DungeonMap/icon/soulFragment/0#";  //菱形图标
var wi3 = "#fUI/SoulUI.img/DungeonMap/icon/soulTrap/0#";  //骷髅图标
var wi4 = "#fUI/SoulUI.img/DungeonMap/icon/warpGate/0#";  //圆点图标
var wi5 = "#fUI/SoulUI.img/DungeonParty/backgrnd2#";  //毛莫
var wi6 = "#fUI/StarCityUI.img/Board_Friend/list/0/5/selected#";  //剪刀石头布
var wi7 = "#fUI/StarCityUI.img/Board_GameRank/tab/enabled/0#";  //游戏排行
var wi8 = "#fUI/StarCityUI.img/Board_GameRank/user/myrank#";  //黄色条
var wi9 = "#fUI/StarCityUI.img/Board_GameRank/user/shining#";  //紫色条
var wi11 = "#fUI/UIPVP.img/ChampionMark/4#";  //徽章黄色
var wi12 = "#fUI/UIPVP.img/DmgEffect/DmgRed/excellentCritical#";  //特别危险蓝//"+wp110+""+wp111+""+wp112+""+wp113+""+wp114+""+wp115+""+wp116+""+wp117+""+wp118+""+wp119+"
var wi13 = "#fUI/UIPVP.img/DmgEffect/DmgBlue/excellentCritical#";  //特别危险绿
var wi14 = "#fUI/UIPVP.img/MiniMapIcon/star#";  //黄星星
var wi15 = "#fUI/UIToolTip.img/Item/Equip/Star/Star1#";  //蓝星星
var wn60 = "#fMob/0100101.img/die1/1#";  //蜗牛
var icon100 = "#fUI/Basic.img/BtMin2/normal/0#";

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
            cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
            cm.dispose();
        } 
    else if (status == 0) {
		var revenue = cm.getHyPay(3);
		//var selStr = "小提示:你可以将游戏窗口调整到1024×768分辨及以上的的其他分辨率,然后就可以在频道选项框的左上角看到拍卖小按钮啦,这样就可以直接呼出万能NPC哟!\r\n";
		var selStr = "#d您今天在线时长为： #r"+cm.getOnlineTime()+"#k #d分钟  累计充值金额： #r" + revenue.formatMoney(0, "") + "#b 元#k\r\n";
		selStr += "#b可用余额为： #r"+ cm.getHyPay(1) +"#b 元  #b目前点卷： #r" + cm.getPlayer().getCSPoints(1) + "#k #b点\r\n";
		selStr += "#b目前抵用卷： #r" + cm.getPlayer().getCSPoints(2) + "#k #b点  当前积分： #r"+cm.getPlayerPoints()+"#k #b点\r\n\r\n";
		selStr += "#b#L0#"+ttt6+" 返回市场#l #b#L5#"+ttt6+" 万能传送#l #b#L3#"+ttt6+" 在线奖励#l\r\n";
		selStr += "#b#L4#"+ttt6+" 职业转职#l #b#L1#"+ttt6+" 常用功能#l #b#L20#"+ttt6+" 爆率查询#l\r\n";
		selStr += "#b#L6#"+ttt6+" 服务中心#l #L7#"+ttt6+" BOSS重置#l #L8#"+ttt6+" 学习技能#l\r\n"
		selStr += "#r#L19#"+ttt6+" 元宝商城#l #r#L16#"+ttt6+" 我要变强#l #r#L2#"+ttt6+" 杂货商店#l\r\n";
		selStr += "#r#L21#"+ttt6+" 中介系统#l #r#L18#"+ttt6+" 充值福利#l #r#L17#"+ttt6+" 物品删除#l\r\n";
		selStr += "#r#L9#"+ttt6+" 新手必点#l #r#L10#"+ttt6+" 管理中心#l #r#L11#"+ttt6+" 每日福利#l\r\n\r\n";
		//selStr += "         #L15#"+ttt4+" #e#r进入冒险岛游戏商城#l\r\n";
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 15:
            cm.dispose();
            cm.enterCS();
            break;
		case 0:
			if (cm.getPlayer().getMapId() >= 910000000 && cm.getPlayer().getMapId() <= 910000022) {
                cm.sendOk("您已经在市场了，还想做什么？");
            } else {
                cm.saveReturnLocation("FREE_MARKET");
                cm.warp(910000000, "st00");
            }
            cm.dispose();		
            break;
		case 9:
			cm.dispose();
			cm.openNpc(9900005);
			break;
		case 4:
			cm.dispose();
			cm.openNpc(9310362, "changeJob");
			break;
		case 2:
			cm.dispose();
			cm.openShop(61);
			break;
		case 5:
			cm.dispose();
			cm.openNpc(9900000, "wncsong");
			break;
		case 20:
			cm.dispose();
			cm.openNpc(9010000, "wuguaibaolbv");
			break;
		case 17:
			cm.dispose();
			cm.openNpc(9900000,"Delete");
			break;
		case 18:
			cm.dispose();
			cm.openNpc(9310362,"czfl");
			break;
		case 19:
			cm.dispose();
			cm.openNpc(9310362,"gouwulibao");
			break;
		case 21:
			cm.dispose();
			cm.openNpc(9900004, 41);
			break;
		case 1:
			cm.dispose();
			cm.openNpc(9310362, 32);
			break;
		case 16:
			cm.dispose();
			cm.openNpc(9310362, 33);
			break;
		case 6:
			cm.dispose();
			cm.openNpc(9310476);
			break;
		case 7:
			cm.dispose();
			cm.openNpc(9310362, "resetBoss");
			break;
		case 8:
			cm.dispose();
			cm.openNpc(9900003, "xuegoujineng");
			break;
		case 3:
			cm.dispose();
			cm.openNpc(9900003, "zxjl");
			break;
		case 10:
			cm.dispose();
			cm.openNpc(9900003, "guanlizhongxin");
			break;
		case 11:
			cm.dispose();
			cm.openNpc(9300011);
			break;







}
    }
}

Number.prototype.formatMoney = function (places, symbol, thousand, decimal) {
    places = !isNaN(places = Math.abs(places)) ? places : 2;
    symbol = symbol !== undefined ? symbol : "　";
    thousand = thousand || ",";
    decimal = decimal || ".";
    var number = this,
        negative = number < 0 ? "-" : "",
        i = parseInt(number = Math.abs(+number || 0).toFixed(places), 10) + "",
        j = (j = i.length) > 3 ? j % 3 : 0;
    return symbol + negative + (j ? i.substr(0, j) + thousand : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousand) + (places ? decimal + Math.abs(number - i).toFixed(places).slice(2) : "");
};
